import http from '@/api';
import { ADMIN_MODULE } from '@/api/helper/prefix';

//模板列表
export const getPrintList = (params) => {
  return http.get(ADMIN_MODULE + `/sys-print`, params);
};

//新增模板
export const createPrint = (params) => {
  return http.post(ADMIN_MODULE + `/sys-print`, params);
};

//修改模板
export const updatePrint = (params) => {
  return http.put(ADMIN_MODULE + `/sys-print`, params);
}

//删除模板
export const deletePrint = (params) => {
  return http.delete(ADMIN_MODULE + `/sys-print`, params);
}

//获取模板详情
export const getPrintTemplate = (id) => {
  return http.get(ADMIN_MODULE + `/sys-print-template`, id);
}

//保存模板
export const savePrintTemplate = (params) => {
  return http.post(ADMIN_MODULE + `/sys-print-template`, params);
}